package com.sl.core.domain.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class TransformationOrder {
    private List<TransformationOrderHop> hop;

    public static TransformationOrder basic() {
        TransformationOrder transformationOrder = new TransformationOrder();
        transformationOrder.setHop(new ArrayList<>());
        return transformationOrder;
    }


    public void addHop(String from, String to, String enabled) {
        if (null == hop) {
            this.hop = new ArrayList<>();

        }
        TransformationOrderHop transformationOrderHop = TransformationOrderHop.basic(from, to, enabled);
        this.hop.add(transformationOrderHop);
    }
}
